package com.SpringBoot.SpringBoot;

import com.SpringBoot.SpringBoot.bean.Person;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Application {
	public static void main(String[] args) {
		//1、返回我们IOC组件
		ConfigurableApplicationContext run = SpringApplication.run(Application.class, args);
		//2、查看容器中的组件
		String[] names = run.getBeanDefinitionNames();
		for (String name : names) {
			System.out.println(name);
		}
	}
}
